FROM golang:1.15
WORKDIR /data/ginblog
COPY . .
RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
RUN go mod download
EXPOSE 3000
CMD "go run main.go"
